package com.qx.pethome.entity;

public class Pet {

    public static final boolean P_SEX_MAN=false;//宠物性别，0为公
    public static final boolean P_SEX_WOMEN=true;//宠物性别，1为母
    public static final boolean PVACCIN_NO=false;//宠物是疫苗
    public static final boolean PVACCIN_YES=true;//宠物否疫苗
    public static final boolean P_REPELLENT_NO=false;//宠物是驱虫
    public static final boolean P_REPELLENT_YES=true;//宠物否驱虫
    public static final Integer P_STATUS_NO=0;//申请状态（三种）0为未领养
    public static final Integer P_STATUS_ING=1;//申请状态（三种）1为申请领养
    public static final Integer P_STATUS_YES=2;//申请状态（三种）2为已领养

    private Integer pId;//宠物编号
    private String pName;//宠物姓名
    private boolean pSex;//宠物性别，0为公，1为母
    private Integer pAge;//宠物年龄
    private boolean pVaccin;//宠物是否疫苗
    private boolean pRepellent;//宠物是否驱虫

    private String pHealth;//宠物健康状况
    private String pPhoto;//宠物照片
    private Integer dId;//宠物详情编号
    private Integer vId;//宠物种类编号
    private boolean pStatus;//申请状态（三种）0为未领养，1为申请领养，2为已领养


    public Pet() {
    }

    public Pet(String pName, boolean pSex, Integer pAge, boolean pVaccin, boolean pRepellent, String pHealth, String pPhoto, Integer dId, Integer vId, boolean pStatus) {
        this.pName = pName;
        this.pSex = pSex;
        this.pAge = pAge;
        this.pVaccin = pVaccin;
        this.pRepellent = pRepellent;
        this.pHealth = pHealth;
        this.pPhoto = pPhoto;
        this.dId = dId;
        this.vId = vId;
        this.pStatus = pStatus;
    }

    public Pet(Integer pId, String pName, boolean pSex, Integer pAge, boolean pVaccin, boolean pRepellent, String pHealth, String pPhoto, Integer dId, Integer vId, boolean pStatus) {
        this.pId = pId;
        this.pName = pName;
        this.pSex = pSex;
        this.pAge = pAge;
        this.pVaccin = pVaccin;
        this.pRepellent = pRepellent;
        this.pHealth = pHealth;
        this.pPhoto = pPhoto;
        this.dId = dId;
        this.vId = vId;
        this.pStatus = pStatus;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public boolean ispSex() {
        return pSex;
    }

    public void setpSex(boolean pSex) {
        this.pSex = pSex;
    }

    public Integer getpAge() {
        return pAge;
    }

    public void setpAge(Integer pAge) {
        this.pAge = pAge;
    }

    public boolean ispVaccin() {
        return pVaccin;
    }

    public void setpVaccin(boolean pVaccin) {
        this.pVaccin = pVaccin;
    }

    public boolean ispRepellent() {
        return pRepellent;
    }

    public void setpRepellent(boolean pRepellent) {
        this.pRepellent = pRepellent;
    }

    public String getpHealth() {
        return pHealth;
    }

    public void setpHealth(String pHealth) {
        this.pHealth = pHealth;
    }

    public String getpPhoto() {
        return pPhoto;
    }

    public void setpPhoto(String pPhoto) {
        this.pPhoto = pPhoto;
    }

    public Integer getdId() {
        return dId;
    }

    public void setdId(Integer dId) {
        this.dId = dId;
    }

    public Integer getvId() {
        return vId;
    }

    public void setvId(Integer vId) {
        this.vId = vId;
    }

    public boolean ispStatus() {
        return pStatus;
    }

    public void setpStatus(boolean pStatus) {
        this.pStatus = pStatus;
    }

    @Override
    public String toString() {
        return "宠物表{" +
                "宠物编号=" + pId +
                ", 宠物姓名='" + pName + '\'' +
                ", 宠物性别=" + pSex +
                ", 宠物年龄=" + pAge +
                ", 宠物是否疫苗=" + pVaccin +
                ", 宠物是否驱虫=" + pRepellent +
                ", 宠物健康状况='" + pHealth + '\'' +
                ", 宠物照片='" + pPhoto + '\'' +
                ", 宠物详情编号=" + dId +
                ", 宠物种类编号=" + vId +
                ", 申请状态=" + pStatus +
                '}';
    }
}
